/*
 *                  BioJava development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the individual
 * authors.  These should be listed in @author doc comments.
 *
 * For more information on the BioJava project and its aims,
 * or to join the biojava-l mailing list, visit the home page
 * at:
 *
 *      http://www.biojava.org/
 * 
 * Created on May 23, 2005
 *
 */
package org.biojava.services.das.servlets;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Timer;
//import java.util.logging.Logger;
import java.sql.*;

import javax.sql.DataSource ;

import org.biojava.dasobert.das.Capabilities;
import org.biojava.dasobert.das.DasSpec;
import org.biojava.dasobert.dasregistry.DasSource;
import org.biojava.dasobert.dasregistry.Das1Validator;
import org.biojava.dasobert.dasregistry.DasValidationResult;


import javax.servlet.*;

import org.quartz.JobExecutionException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.biojava.services.das.dao.*;
import org.biojava.services.das.registry.ConfigBean;
import org.biojava.services.das.registry.DasRegistry;
import org.biojava.services.das.registry.DasRegistrySql;
import org.biojava.services.das.registry.RegistryConfiguration;
import java.util.logging.Logger;

import uk.ac.sanger.dasregistry.timer.Archiver;

import dasregistry.validation.Validator;

import java.io.*;


/** For testing purposes only to be called from web page
 * 
 * @author Andreas Prlic
 *
 */
public class ArchiveServers extends GenericServlet{


	private static final long serialVersionUID = 1L;


	public void service(ServletRequest request,
			ServletResponse response)
	throws IOException, ServletException
	{

Archiver archiver=new Archiver();
try {
	archiver.execute(null);
} catch (JobExecutionException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}

	}




}
